package com.vehicle.repair.repository;

import com.vehicle.repair.model.MaterialUsage;
import com.vehicle.repair.model.WorkOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface MaterialUsageRepository extends JpaRepository<MaterialUsage, Integer> {
    List<MaterialUsage> findByOrder(WorkOrder order);
    
    List<MaterialUsage> findByOrder_OrderId(Integer orderId);
}
